package exp;

class expi {
	public void validate(int age) throws invalidage
	{ 
		int i =0;
		if( i>18)
		{
			throw new invalidage("not valid");
		
		}
	}
        public static void main(String[] args){
        	{
        		//int i=Integer.parseInt(args[0]);
        		expi t=new expi();
        		try{
        			t.validate(20);
        		}
        		catch(Exception e)
        		{
        			System.out.println("printing..."+e);
        		}
        	}
    }
}